I want to add parse_func as something different soon.
g_param_value_set_default (property->pspec, val);
gtk_css_ruleset_add (ruleset, property, val);
}
- else if (property->parse_func)
+ else if (property->property_parse_func)
{
GError *error = NULL;
char *value_str;
g_slice_free (GValue, val);
return;
}
-
- if ((*property->parse_func) (value_str, val, &error))
- gtk_css_ruleset_add (ruleset, property, val);
+
+ if ((*property->property_parse_func) (value_str, val, &error))
+ {
+ gtk_css_ruleset_add (ruleset, property, val);
+ }
else
{
gtk_css_provider_take_error (scanner->provider, scanner, error);
*pspec = node->pspec;
if (parse_func)
- *parse_func = node->parse_func;
+ *parse_func = node->property_parse_func;
found = TRUE;
}
void
_gtk_style_property_register (GParamSpec *pspec,
- GtkStylePropertyParser parse_func,
+ GtkStylePropertyParser property_parse_func,
GtkStyleUnpackFunc unpack_func,
GtkStylePackFunc pack_func)
{
node = g_slice_new0 (GtkStyleProperty);
node->pspec = pspec;
- node->parse_func = parse_func;
+ node->property_parse_func = property_parse_func;
node->pack_func = pack_func;
node->unpack_func = unpack_func;
struct _GtkStyleProperty
{
GParamSpec *pspec;
- GtkStylePropertyParser parse_func;
+ GtkStylePropertyParser property_parse_func;
GtkStyleUnpackFunc unpack_func;
GtkStylePackFunc pack_func;
};
const GtkStyleProperty * _gtk_style_property_lookup (const char *name);
void _gtk_style_property_register (GParamSpec *pspec,
- GtkStylePropertyParser parse_func,
+ GtkStylePropertyParser property_parse_func,
GtkStyleUnpackFunc unpack_func,
GtkStylePackFunc pack_func);